add dirAction and router for get __DIR__