mirror of
https://github.com/discourse/discourse.git
synced 2024-12-20 02:33:55 +08:00
9 lines
221 B
JavaScript
9 lines
221 B
JavaScript
|
import getUrl from "discourse-common/lib/get-url";
|
||
|
import { registerRawHelper } from "discourse-common/lib/helpers";
|
||
|
|
||
|
registerRawHelper("base-path", basePath);
|
||
|
|
||
|
export default function basePath() {
|
||
|
return getUrl("");
|
||
|
}
|