Registering a static resource directory