You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
333 B
Dart
13 lines
333 B
Dart
import 'package:isekai_wiki/api/restbase/restbase_api.dart';
|
|
|
|
class RestfulPageApi {
|
|
static Future<String?> getPageHtml(String title, {int? revId}) async {
|
|
title = Uri.encodeComponent(title);
|
|
var url = "/page/html/$title";
|
|
if (revId != null) {
|
|
url += "/$revId";
|
|
}
|
|
return await RestbaseApi.get(url);
|
|
}
|
|
}
|