Fix map and example project
Now User can use api.register as decorator.